/*
 * Copyright (c) 2015, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.dao.mapper1;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.fpx.open.platform.domain.pickup.PickupPlan;
import com.fpx.open.platform.domain.pickup.PickupVehicleTrips;

/**
 * 揽收计划Mapper接口
 * @author shiw
 * @date 2015年10月8日
 */
@Repository
public interface PickupPlanMapper {
	
	/**
	 * 添加揽收计划
	 * @param pickupPlan
	 */
	void addPickupPlan(PickupPlan pickupPlan);
	
	/**
	 * 查询揽收班次
	 * @param areaId
	 * @param timePart
	 * @return
	 */
	PickupVehicleTrips queryPickupVehicleTrips(@Param("areaId") Integer areaId, @Param("timePart") String timePart);
	
	/**
	 * 根据客户单号查询揽收计划
	 * @param customerOrderNo
	 * @return
	 */
	PickupPlan queryPickupPlanByCustomerOrderNo(@Param("customerOrderNo") String customerOrderNo);
}
